﻿namespace FrameworkCore.Events;

/// <summary>
/// 事件泛型类
/// </summary>
/// <typeparam name="T">事件实体的类型</typeparam>
public partial class Event<T> where T : class
{
    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="entity">实体</param>
    public Event(T entity)
    {
        Entity = entity;
    }

    /// <summary>
    /// 实体
    /// </summary>
    public T Entity { get; }
}